<?php

class Model_DbTable_Apos_Kadata extends Zend_Db_Table_Abstract {
	
	public function listKA($kaNo,$location){
	
		$whereStr = "ADJ_NO LIKE '".$kaNo."' AND LOC LIKE '{$location}' ";
		$row = $this->fetchAll($whereStr);
		if(!(bool)$row->toArray()) {return false;}
		return $row->toArray();
			
	}
	
	public function sCodeExist($sCode,$kaNo,$location){
		
		$whereStr = "SCODE LIKE '{$sCode}' AND ADJ_NO LIKE '".$kaNo."' AND LOC LIKE '{$location}' ";
		$row = $this->fetchRow($whereStr);
		if(!$row) return false;
		return $row->toArray();
		
	}
}

?>